package com.ws.universal.tools.countdown;

/**
 * @创建者 ws
 * @创建时间 2021/9/15
 * @描述 登录 忘记密码 倒计时
 */
public class TimeCount extends CountDownTimer {
    private CountDown mCountDown;

    public TimeCount() {
        setmCountdownInterval(1000);
    }

    public void setCountDown(CountDown countDown) {
        mCountDown = countDown;
    }


    @Override
    public void onTick(long millisUntilFinished) {
        if (mCountDown != null)
            mCountDown.onTick(millisUntilFinished);
    }

    @Override
    public void onTickFinish() {
        if (mCountDown != null)
            mCountDown.onTickFinish();
    }

}
